import request from '@/utils/request'

// 查询所有部门
export function getDeptAll() {
  return request({
    url: '/dept/all',
    method: 'get'
  })
}


// 修改部门信息
export function updeteDept(data) {
  return request({
    url: '/dept/updeteDept',
    method: 'post',
    data
  })
}

// 新增加部门
export function createDept(data) {
  return request({
    url: '/dept/createDept',
    method: 'post',
    data: data
    
  })
}

export function deleteDept(id) {
  return request({
    url: '/dept/delete',
    method: 'get',
    params: {id}
    
  })
}